import { createApp } from "vue";
import App from "./App.vue";
import { Notify } from "vant";
import { Lazyload } from "vant";

// 引入创建的pinia仓库
import pinia from "@/store";

// 移动端适配
// import 'amfe-flexible';

// 2. 引入组件样式
import "vant/lib/index.css";

// 引入移动端适配
// import "amfe-flexible";
// import "./utils/rem";

// 导入路由
import router from "./router";
// 引入全局组件 一级分类导航
import FirstCategory from "@/views/voicebook/components/FirstCategory/index.vue";

// 引入全局组件  二级分类导航
import SecondCategory from "@/views/voicebook/components/SecondCategory/index.vue";

const app = createApp(App);
app.use(Notify);
// const cors = require('cors');
// app.use(cors);
// 注册全局组件
app.component(FirstCategory.name, FirstCategory);
app.component(SecondCategory.name, SecondCategory);

app.use(router).use(pinia).mount("#app");
